package jsu.blogger.service.inter;

import jsu.blogger.pojo.Post;

import java.sql.Timestamp;
import java.time.LocalDateTime;
import java.util.List;

public interface LiveService {
    public Long insertOneLive(Long uid, Timestamp timestamp, String text);
    public Post selectOneLive(Long postId);
    public List<Long> selectFollowedUid(Long uid);
    public List<Long> selectFollowersUid(Long uid);
    public List<Post> selectLiveLimit(int offset, int limit);
    public List<Post> selectLiveByUid(Long uid,int offset, int limit);
    public List<Post> selectLiveAll();
    public Timestamp isFollow(Long uid1, Long uid2);
    public boolean followSb(Long uid1, Long uid2,Timestamp timestamp);
    public boolean cancelFollowSb(Long uid1, Long uid2);
    public boolean deleteLiveByPostId(Long postId);
    public boolean addLiveLike(Long postId,Long uid,int isLike,Timestamp createdAt);

    Integer isPostUserLike(Long postId, Long uid);

    int getPostLikes(Long postId);

    String getLiveContent(Long postId);

    boolean deleteLiveLike(Long postId, Long uid);

    Long getUserIdByPostId(Long postId);

    List<Long> getPostIdByUserId(Long userId, int begin, int count);
}